package bufftered;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.Writer;

public class BufferedWriter1 {
    public static void main(String[] args) {
        File file = new File("C:\\Users\\zjd\\IdeaProjects\\java\\src\\itheima");
        System.out.println(file.mkdir());

        try (
                Writer is = new FileWriter("C:\\Users\\zjd\\IdeaProjects\\java\\src\\itheima.09.txt",true);
                BufferedWriter bw = new BufferedWriter(is);

        ){
            bw.write(97);
            bw.write("张家动");
            bw.write('张');
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
